package com.lyq.gift.exception.code;

/**
 * 整个系统中错误枚举
 */
public enum ErrorCode {
    ERROR_CODE_TENANT_EXSIT(400000001,"该租户已经存在!请直接登陆使用!"),
    ERROR_CODE_TENANT_ADMIN_EXSIT(400000002,"该管理员已经存在!请直接登陆直接添加租户!"),
    ERROR_CODE_400(400,"传入的数据不正确!请修改后重试"),
    ERROR_CODE_500(500,"系统繁忙!请联系管理员!");
    private Integer code;
    private String message;

    ErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    ErrorCode() {
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
